<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>




<c:forEach items="${level23data }" var="tmp">

	<c:if test="${!tmp.deletestatus }">
	
		
		<tr id="${tmp.id }" parent="${tmp.parentId }" level="child_${ppid }" levelS = "${tmp.level }">
 			<td align="center"><input name="ids" id="ids" type="checkbox" value="${tmp.id }"></td>
  		  <td colspan="2" align="center">
	 			<ul class="addclass">
		<c:if test="${tmp.level==1 }">
		
			   <li class="acc1"><img src="/images/jian.jpg" cls="jian" width="14" height="14" onclick="addorsubtract(this,${tmp.id },${tmp.parentId })" style="cursor:pointer;"></li>
			   <li class="ac2"><span class="num"><input type="text" name="0" id="0" value="${tmp.sequence }" onchange="ajax_update(&#39;${tmp.id }&#39;,&#39;sequence&#39;,this)" title="可编辑"></span></li>
			   <li class="acc3"><span class="classies"><input type="text" name="${tmp.classname }" id="${tmp.classname }" value="${tmp.classname }" onchange="ajax_update(&#39;${tmp.id }&#39;,&#39;className&#39;,this)" title="可编辑"></span>
			   <span class="newclass" style="$sty"><a href="http://localhost:8080/admin/goods_class_add.htm?pid=${tmp.id }">新增下级</a></span></li>
		</c:if>
		
		<c:if test="${tmp.level==2 }">
		<!-- parent属性是与第二层做联系,level属性是为了与第一层做联系 -->
			   <li class="accc1"><img src="/images/jian.jpg" cls="jian" width="14" height="14" onclick="addorsubtract(this,${tmp.id })" style="cursor:pointer;"></li>
			   <li class="ac2"><span class="num"><input type="text" name="0" id="0" value="${tmp.sequence }" onchange="ajax_update(&#39;${tmp.id }&#39;,&#39;sequence&#39;,this)" title="可编辑"></span></li>
			   <li class="acc3"><span class="classies"><input type="text" name="${tmp.classname }" id="${tmp.classname }" value="${tmp.classname }" onchange="ajax_update(&#39;${tmp.id }&#39;,&#39;className&#39;,this)" title="可编辑"></span>
			   <span class="newclass" style="$sty"></span></li>
		</c:if>
			       </ul>    
		  </td>
		
		    <td align="center"></td>
		    <c:if test="${tmp.display }">
		    <td align="center" id="display"><img id="displayFlg" src="/images/true.png" width="21" height="23" onclick="ajax_update(&#39;${tmp.id }&#39;,&#39;display&#39;,this)" style="cursor:pointer;" title="可编辑" valb="true"></td>
		    </c:if>
		    <c:if test="${!tmp.display }">
		    <td align="center" id="display"><img id="displayFlg" src="/images/false.png" width="21" height="23" onclick="ajax_update(&#39;${tmp.id }&#39;,&#39;display&#39;,this)" style="cursor:pointer;" title="可编辑" valb="false"></td>
		    </c:if>
		    <c:if test="${tmp.recommend }">
		    <td align="center" id="recommend"><img id="recommendFlg" src="/images/true.png" width="21" height="23" onclick="ajax_update(&#39;${tmp.id }&#39;,&#39;recommend&#39;,this)" style="cursor:pointer;" title="可编辑" valb="true"></td>
		    </c:if>
		    <c:if test="${!tmp.recommend }">
		    <td align="center" id="recommend"><img id="recommendFlg" src="/images/false.png" width="21" height="23" onclick="ajax_update(&#39;${tmp.id }&#39;,&#39;recommend&#39;,this)" style="cursor:pointer;" title="可编辑" valb="false"></td>
		    </c:if>
		    <td align="left" class="ac8"><a href="/goodsclass/selectClassSimple?id=${tmp.id }">编辑</a>|<a href="javascript:void(0);" onclick="ajax_delete('${tmp.id }','deletestatus',this)" valb="true">删除</a></td>
		</tr>
		</c:if>
		</c:forEach>




























		<%-- <c:forEach items="${level23data }" var="tmp">
			
				
					<tr id="${tmp.id }" parent="${pid }" level="child_${pid }">
			 			<td align="center"><input name="ids" id="ids" type="checkbox" value="${tmp.id }"></td>
			  		  <td colspan="2" align="center">
				 			<ul class="addclass">
						   <li class="acc1"><img src="/images/jian.jpg" cls="jian" width="14" height="14" onclick="addorsubtract(this,${tmp.id })" style="cursor:pointer;"></li>
						   <li class="ac2"><span class="num"><input type="text" name="0" id="0" value="0" onchange="ajax_update(&#39;${tmp.id }&#39;,&#39;sequence&#39;,this)" title="可编辑"></span></li>
						   <li class="acc3"><span class="classies"><input type="text" name="${tmp.classname }" id="${tmp.classname }" value="${tmp.classname }" onchange="ajax_update(&#39;${tmp.id }&#39;,&#39;className&#39;,this)" title="可编辑"></span>
			<c:if test="${tmp.level==1 }">
						   <span class="newclass" style="$sty"><a href="http://localhost:8080/admin/goods_class_add.htm?pid=${tmp.id }">新增下级</a></span>
			</c:if>
						   </li>
						       </ul>    
					  </td>
					    <td align="center"></td>
					    <td align="center"><img src="/images/true.png" width="21" height="23" onclick="ajax_update(&#39;${tmp.id }&#39;,&#39;display&#39;,this)" style="cursor:pointer;" title="可编辑"></td>
					    <td align="center"><img src="/images/true.png" width="21" height="23" onclick="ajax_update(&#39;${tmp.id }&#39;,&#39;recommend&#39;,this)" style="cursor:pointer;" title="可编辑"></td>
					    <td align="left" class="ac8"><a href="http://localhost:8080/admin/goods_class_edit.htm?id=${tmp.id }&amp;currentPage=1">编辑</a>|<a href="javascript:void(0);" onclick="if(confirm(&#39;删除分类会同时删除该分类的所有下级，是否继续?&#39;))window.location.href=&#39;http://localhost:8080/admin/goods_class_del.htm?mulitId=${tmp.id }&amp;currentPage=1&#39;">删除</a></td>
					</tr>
					
			
		
			
		</c:forEach> 
		 --%>
		
